﻿@using Demo.Model;
@using Pampa.MVC.Helpers;
@using Pampa.MVC.Models;
@using Pampa.MVC.Fluent.Common;
@using Pampa.MVC.Fluent.Crud;
@using Pampa.GenericEntity;

@{
    Layout = "~/Views/Shared/Layout.cshtml";
    ViewBag.Title = "Index";

    string contentItemType = ViewBag.ContentItemType; 
}

<h2>Persons</h2>

<div>

    @(Html.Pampa().ContentGrid()
                  .ClientId("ContentGrid")
                  .PageSize(10)
                  .Config(contentItemType))

    @(Html.Pampa().BasicPager()
                  .GridClientId("ContentGrid"))

    <br/>
    <a href="@Url.Action("New", "Content", new { type = contentItemType })" class="button">New</a>
    <br/>

</div>
